<?php
/**
 * Created by PhpStorm.
 * User: jason
 * Date: 2017/11/8
 * Time: 23:16
 */

namespace Home\Controller;


use Home\Service\UserMemberService;

class MemberController extends HomeController
{
    public function index($uid = '', $style = '')
    {
        //获取会员设置
        $service = new UserMemberService();
        $chargeSet = $service->coinCharge($uid);

        $this->assign('account', $chargeSet['account']);
        $this->assign('charge_set', $chargeSet['charge_set']);
        $this->assign('style', $style);
        $this->display();
    }

    /**
     * 选择乐器类型
     */
    public function preSelect()
    {
        $styleList = [
            ['id' => 1, 'name' => '吉他'],
            ['id' => 2, 'name' => '钢琴'],
            ['id' => 3, 'name' => '尤克里里'],
            ['id' => 4, 'name' => '古筝']
        ];
        $this->assign('style_list', $styleList);
        $this->display('pre_select');
    }

    /**
     * 支付宝支付提示
     */
    public function aliNotice()
    {
        $this->display('ali_notice');
    }
}